package com.foreknow.demo4;

/**
 * @author shkstart
 * @create 2021-07-26 16:31
 */
public class K {
    public void m1(X x) {
        x.init();
    }
    public X m2(){
        X x=new Y();

        return x;
    }

    public static void main(String[] args) {
        K k = new K();
        X x = new Y();
        k.m1(x);
        x=new Z();
        k.m1(x);

    }
}
